/*
 * app应用信息
 */
Ext.define('MyApp.model.AppInfoModel', {
    extend: 'Ext.data.Model',
    fields: [{
        name: 'id'
    },{
        name:'appId' //应用id
    },{
        name:'appName' //应用名称
    },{
        name:'baiduApiKey' //android百度云推送apikey
    },{
        name:'baiduSecretKey' // android百度云推送secretKey
    },{
        name:'apnsPath' // APNS Dev环境证书路径
    },{
        name:'apnsPassword' // APNS 证书密码
    },{
        name:'descInfo' //应用详细信息
    },{
        name: 'createTime',//应用创建时间
        type: 'date',
        convert: function(v, record){
        	if(!Ext.isEmpty(v)){
        		return new Date(v);
        	}else{
        		return null;
        	}
        }
    },{
        name: 'lastUpdateTime',//应用更新时间
        type: 'date',
        convert: function(v, record){
        	if(!Ext.isEmpty(v)){
        		return new Date(v);
        	}else{
        		return null;
        	}
        }
    },{
		name: 'isDeleted',//是否启用
		type: 'boolean'
	}]
});